package com.jk.admin.controller;

import com.jk.admin.entity.Product;
import com.jk.admin.service.PopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Chao Wenguang 536567058@qq.com
 * @Description //TODO
 * @Date 15:31 2021/4/1
 * @Param
 * @return
 **/
@RestController
public class PopController {
    @Autowired
    private PopService popService;

    @RequestMapping("getListPop")
    public List<Product> getListPop(Product product){

        return popService.getListPop(product);

    }
    @RequestMapping("getListNonPop")
    public List<Product> getListNonPop(Product product){

        return popService.getListNonPop(product);

    }

    @RequestMapping("PopById")
    public void PopById(Integer id){

         popService.PopById(id);

    }
    @RequestMapping("delPop")
    public void delPop(Integer id){

         popService.delPop(id);

    }




}



